<?php

class BlogPost{
    public function getPosts(){
        global $conn, $classList;
        $result = $classList['Sql']->queryWithConditions($conn, "posts");
        
        return  HttpData::result('json', 200, "success", $result, 30);
    }
    public function getPost($id){
        //get post by id
    }
    public function createPost($title,$content){
        //create post
    }
}